set(jamusFrontendMpdSrcs Plugin.cpp Connection.cpp)
add_library(mpd_frontend SHARED ${jamusFrontendMpdSrcs})
set_target_properties(mpd_frontend PROPERTIES PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/src)

add_executable(mpd_frontend_test test.cpp ../../Track.cpp ../../InvalidPlaybackStateException.cpp ../../NoCurrentTrackException.cpp)
target_link_libraries(mpd_frontend_test mpd_frontend stub_backend mpdclient ${Boost_LIBRARIES} ${LOG4CXX_LIBRARIES})

add_test(mpd_frontend_test mpd_frontend_test)

install(TARGETS mpd_frontend LIBRARY DESTINATION ${pluginDirectory})
